/*
 * @Description: 档案类型实体
 * @Author: Rfan
 * @Date: 2022-12-05 19:14:40
 * @LastEditTime: 2022-12-06 10:33:48
 */

import { IArchiveType, ILevel } from '@/interfaces/archiveType';

class ArchiveType {
  levelList: ILevel[];
  operateTime: number;
  atCode: number;
  tableInfo: string;
  remark: string;
  allowSearchUtilizeOtherUnit: number;
  fondsId: number;
  operator: null;
  atName: string;
  deleted: number;
  allowSearchUtilize: number;
  id: number;
  atLevel: number;
  atType: number;

  constructor(at: IArchiveType) {
    this.id = at?.id;
    this.atName = at?.atName;
    this.atLevel = at?.atLevel;
    this.atType = at?.atType;
    this.levelList = at?.levelList;
    this.operateTime = at?.operateTime;
    this.atCode = at?.atCode;
    this.tableInfo = at?.tableInfo;
    this.allowSearchUtilizeOtherUnit = at?.allowSearchUtilizeOtherUnit;
    this.fondsId = at?.fondsId;
    this.operator = at?.operator;
    this.deleted = at?.deleted;
    this.allowSearchUtilize = at?.allowSearchUtilize;
    this.remark = at?.remark;
  }

  getLevelList() {
    return this.levelList;
  }
}
export default ArchiveType;
